<?php
require_once ('Expression.php');

/**
 * @author wei.deng
 * @version 1.0
 * @created 05-八月-2011 11:04:55
 */
class LiteralExpression extends Expression
{

	private $value;

	/**
	 * 
	 * @param value
	 */
	public function __construct($value)
	{
		$this->value = $value;
	}

	/**
	 * 
	 * @param context
	 */
	public function interpret(InterpreterContext $context)
	{
		$context->replace($this, $this->value);
	}

}
?>